<template>
 <div>
          <h2>详情页面</h2>
          <p>id: {{ $route.query.id }}</p>
          <button @click='handle'>返回</button>
        </div>
</template>

<script>
export default {
 methods: {
        handle(){
            this.$router.go(-1)
        }
 }
}
</script>

<style>

</style>